﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using QLTB.Data;
using QLTB.Entities;
using _4rumDCT.App_Code;

namespace QuanLyThietBi
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                
            }
        }

        protected void cmdTimKiem_OnClick(object sender, EventArgs e)
        {
            int totalRows = 0;
            string whereClause = "MaSinhVien like '%" + txtTuKhoa.Text + "%'";
            TList<BangDiem> TList_BangDiem =
                DataRepository.BangDiemProvider.GetPaged(whereClause,"",0,0,out totalRows);
            rpBangDiem.DataSource = TList_BangDiem;
            rpBangDiem.DataBind();
        }

        public string getTenSinhVien(object ob)
        {
            string ma = ob.ToString();
            return DataRepository.SinhVienProvider.GetByMaSinhVien(ma).HoTen;
        }
    }
}